<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加</title>

<!--    <link rel="stylesheet" type="text/css" href="css/common.css">
    <link rel="stylesheet" href="css/register.css">
    &lt;!&ndash;导入jquery&ndash;&gt;
    <script src="js/jquery-3.3.1.js"></script>-->

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/common.css">
    <link rel="stylesheet" type="text/css" href="css/index.css">

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-3.3.1.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
    <!--导入布局js，共享header和footer-->
    <script type="text/javascript" src="js/include.js"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        $(function () {
                $("#tianjiatijiao").submit(function () {
                    $.post("tianjiaF&VServlet",$(this).serialize(),function (data) {})
                })
        })

    </script>
</head>
<body>
<div id="header"></div>
<div style="margin: 20px auto; width: 600px">
    <form id="tianjiatijiao" class="form-inline" style="width: auto">
        <!--提交处理请求的标识符-->
        <!--<input action="user" type="hidden" name="action" value="register">-->
        <table class="table table-hover" style="margin-top: 40px">
            <tr>
                <td>
                    <label for="name">产品名称</label>
                </td>
                <td id="n1">
                    <input name="name"  style="width: 300px" type="text" class="form-control" id="name" placeholder="商品名称">
                </td>
            </tr>
            <tr>
                <td>
                    <label for="amount">产品数量</label>
                </td>
                <td id="n2">
                    <input name="amount"  style="width: 300px" type="text" class="form-control" id="amount" placeholder="数量">
                </td>
            </tr>
            <tr>
                <td>
                    <label for="price">价格/kg</label>
                </td>
                <td id="n3">
                    <input name="price" style="width: 300px" type="text" class="form-control" id="price" placeholder="价格/kg">
                </td>
            </tr>
            <tr>
                <td>
                    <label for="productionDate">生产日期</label>
                </td>
                <td id="n4">
                    <input name="productionDate" style="width: 300px" type="date" class="form-control" id="productionDate" placeholder="生产日期">
                </td>
            </tr>
            <tr>
                <td>
                    <label for="shelflife">保质期</label>
                </td>
                <td id="n5">
                    <input name="shelflife" style="width: 300px" type="text" class="form-control" id="shelflife" placeholder="保质期">
                </td>
            </tr>
            <tr>
                <td>
                    <label for="manufacturer">供货商</label>
                </td>
                <td id="n6">
                    <input name="manufacturer" style="width: 300px" type="text" class="form-control" id="manufacturer" placeholder="供货商">
                </td>
            </tr>
            <tr>
                <td>
                    <label for="phone">电话号码</label>
                </td>
                <td id="n7">
                    <input name="phone" style="width: 300px" type="text" class="form-control" id="phone" placeholder="电话号码">
                </td>
            </tr>


        </table>
        <button id="tijiao" style="margin-top: auto;width: 250px" type="submit" class="btn btn-primary">提交</button>

    </form>
</div>
</body>
</html>